#pragma once
#include "GameObject.h"
#define MaxMV 2
class CircleMovable : public GameObject
{
protected:
	Vector2D _centre;
	Vector2D _direction;
	double _rayon;

protected:
	virtual void CalculerEnglobant();
	virtual void CalculerDirection(CircleMovable *);
	virtual void CalculerDirection(int);

public:
	
	CircleMovable(Vector2D &,double,GameRectangle & arene);
	virtual void Paint(wxDC &dc);
	virtual void Move();
	virtual int Collision(DrawableObject *);
	static int CollisionCercle(Vector2D &,double, Vector2D &, double ,double marge=0);
	void SetDirection(Vector2D & direct);
	Vector2D GetCentre()const {return _centre;}
	Vector2D GetDirection()const {return _direction;}
	double GetRayon()const {return _rayon;}
	virtual ~CircleMovable();
};

